#{extends 'main.html' /}
#{set title:'run.html' /}

<script>
	var appId = "${appId}";
	
	var updateHtmlTextInputComponentUrl = "@{OntoWebApp.run(appId)}/updateHtmlTextInputComponent/";
	var actionHtmlButtonComponentUrl = "@{OntoWebApp.run(appId)}/actionHtmlButtonComponent/";
	
	function updateHtmlTextInputComponent(componentId, newValue) {
		$.ajax({
		  	type : 'POST',
			url : updateHtmlTextInputComponentUrl + componentId ,
			data : 'newValue=' + newValue , 
			success : function(data){ 
				//$('body').html(data);
			}
		});
	}
	
	function actionHtmlButtonComponent(componentId) {
		$.ajax({
		  	type : 'GET',
			url : actionHtmlButtonComponentUrl + componentId ,
			success : function(data){ 
				$('body').html(data);
			}
		});
	}
</script>

%{
out.print(html);
}%